#!/bin/bash

# 构建并运行Flutter客户端

echo "Starting Flutter client..."

cd flutter_client

# 检查Flutter是否安装
if ! command -v flutter &> /dev/null; then
    echo "Flutter is not installed. Please install Flutter first."
    exit 1
fi

# 安装依赖
echo "Getting Flutter dependencies..."
flutter pub get

# 运行Flutter应用
echo "Running Flutter app..."
flutter run
